﻿using System;
using System.ComponentModel.DataAnnotations;

namespace LanhuCms.Model.Model.Base
{
    public class BaseTable
    {
        public BaseTable() {
            this.Id = Guid.NewGuid();
            this.CreateDate = DateTime.Now;
            this.LastEditDate = DateTime.Now;
        }

        [Key]
        public Guid Id { get; set; }

        [Timestamp]
        public byte[] RowVersion { get; set; }

        public DateTime CreateDate { get; set; }
        public DateTime LastEditDate { get; set; }

        public long RowState { get; set; }
    }
}
